package java9;

public class Code125 {
	public static void main(String[] args) {
		for(int i=1;i<=9;i++){
			for(int j=1;j<=17;j++){
				if(i==1){
					if(j<=9||j==17){
						System.out.print("*");
					}else{
						System.out.print(" ");
					}
				}else if(i>1&&i<5){
					if(j==9||j==17){
						System.out.print("*");
					}else{
						System.out.print(" ");
					}
				}else if(i==5){
					System.out.print("*");

				}else if(i>5&&i<9){
					if(j==1||j==9){
						System.out.print("*");
					}else{
						System.out.print(" ");
					}
				}else{
					if(j==1||j>=9){
						System.out.print("*");
					}else{
						System.out.print(" ");
					}
				}
			}
			System.out.println();
		}
	}
}
